class DotaskEntity {
	int code;
	DotaskData data;
	String message;

	DotaskEntity({this.code, this.data, this.message});

	DotaskEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new DotaskData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class DotaskData {
	int current;
	int flag;
	int endtime;
	int state;

	DotaskData({this.current, this.flag, this.endtime, this.state});

	DotaskData.fromJson(Map<String, dynamic> json) {
		current = json['current'];
		flag = json['flag'];
		endtime = json['endtime'];
		state = json['state'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['current'] = this.current;
		data['flag'] = this.flag;
		data['endtime'] = this.endtime;
		data['state'] = this.state;
		return data;
	}
}
